{% extends "/dbconfig/css.twig" %}

{% block html %}
    <div id="top" class="flex-r flex-start">
        <div class="flex3 pos-r">
            <div>
                {% for item in conf %}
                    <a href="#{{ item.table.path }}{{ item.table.name }}">
                        <div class="pad3 bdso flrc">
                            <div>{{ item.table.cnName }} / </div>
                            <div>{{ item.table.name }} / </div>
                            <div class="flex1">{{ item.table.path }}</div>
                        </div>
                    </a>
                {% endfor %}
            </div>
        </div>
        <div class="flex8 padl10 bdso">
            {% for item in conf %}
                <div id="{{ item.table.path }}{{ item.table.name }}" class="pad3 padb10 {{ loop.index % 2 ==0?"bc13":"" }}">
                    <div class="pad3 flrc bdtso bdbso bdw3 bdc12 fwb list-style-2">
                        <div class="padr10 flex1">[ {{ item.table.path }} ] </div>
                        <div class="padr10 flex2">{{ item.table.name }} </div>
                        <div class="padr10 flex7">{{ item.table.cnName }} </div>
                    </div>
                    <textarea style="width: 100%;height: 300px;">
                    [
                        {% for f in item.fields %}
                            {% if f.Type == "string" and f.Length != ""%}
                                {
                                "label": "{{ f.CnName }}",
                                "tag": "el-input",
                                "tagIcon": "input",
                                "placeholder": "请输入单行文本",
                                "span": 24,
                                "labelWidth": null,
                                "style": {
                                    "width": "100%"
                                },
                                "clearable": true,
                                "prepend": "",
                                "append": "",
                                "prefix-icon": "",
                                "suffix-icon": "",
                                "maxlength": null,
                                "show-word-limit": false,
                                "readonly": false,
                                "disabled": false,
                                "required": true,
                                "regList": [],
                                "changeTag": true,
                                "formId": 101,
                                "renderKey": 1645700278549,
                                "layout": "colFormItem",
                                "vModel": "{{ f.Name }}"
                                },
                            {% endif %}
                            {% if f.Type == "string" and f.Length == ""%}
                                {
                                "label": "{{ f.CnName }}",
                                "tag": "el-input",
                                "tagIcon": "textarea",
                                "type": "textarea",
                                "placeholder": "请输入多行文本",
                                "span": 24,
                                "labelWidth": null,
                                "autosize": {
                                "minRows": 4,
                                "maxRows": 4
                                },
                                "style": {
                                    "width": "100%"
                                },
                                "clearable": true,
                                "prepend": "",
                                "append": "",
                                "prefix-icon": "",
                                "suffix-icon": "",
                                "maxlength": null,
                                "show-word-limit": false,
                                "readonly": false,
                                "disabled": false,
                                "required": true,
                                "regList": [],
                                "changeTag": true,
                                "formId": 101,
                                "renderKey": 1645700278549,
                                "layout": "colFormItem",
                                "vModel": "{{ f.Name }}"
                                },
                            {% endif %}
                        {% endfor %}
                    ]
                       </textarea>
                </div>
            {% endfor %}
        </div>
    </div>
    <div class="pos-f b0 r0">
        <div class="pad10"><a href="#top">返回顶部</a></div>
    </div>
{% endblock %}